package com.site.wisdom_construction.service.qualityModule;

import com.site.wisdom_construction.dao.qualityModule.QualityDangerRecordDao;
import com.site.wisdom_construction.entity.qualityModule.QualityDangerRecord;
import com.site.wisdom_construction.entity.safetyModule.SafetyDangerRecord;
import com.site.wisdom_construction.statisticsResult.MonthValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/13
 * @Description
 */
@Service
public class QualityDangerRecordService implements QualityDangerRecordDao {
    @Autowired
    private QualityDangerRecordDao qualityDangerRecordDao;

    @Override
    public int insertQualityDangerRecordByPc(Map map) {
        return qualityDangerRecordDao.insertQualityDangerRecordByPc(map);
    }

    @Override
    public int insertQualityDangerRecordByApp(Map map) {
        return qualityDangerRecordDao.insertQualityDangerRecordByApp(map);
    }

    @Override
    public int deleteQualityDangerRecord(Map map) {
        return qualityDangerRecordDao.deleteQualityDangerRecord(map);
    }

    @Override
    public int updateQualityDangerRecord(Map map) {
        return qualityDangerRecordDao.updateQualityDangerRecord(map);
    }

    @Override
    public int updateQualityDangerRecordByReport(Map map) {
        return qualityDangerRecordDao.updateQualityDangerRecordByReport(map);
    }

    @Override
    public int updateQualityDangerRecordAccept(Map map) {
        return qualityDangerRecordDao.updateQualityDangerRecordAccept(map);
    }

    @Override
    public List<QualityDangerRecord> findQualityDangerRecordByPage(Map map) {
        return qualityDangerRecordDao.findQualityDangerRecordByPage(map);
    }

    @Override
    public long Total(Map map) {
        return qualityDangerRecordDao.Total(map);
    }

    @Override
    public List<QualityDangerRecord> selectQualityDangerRecord(Map map) {
        return qualityDangerRecordDao.selectQualityDangerRecord(map);
    }

    @Override
    public List<QualityDangerRecord> findQualityDangerRecordById(Map map) {
        return qualityDangerRecordDao.findQualityDangerRecordById(map);
    }

    @Override
    public List<QualityDangerRecord> findQualityDangerRecordByByManagerialId(Map map) {
        return qualityDangerRecordDao.findQualityDangerRecordByByManagerialId(map);
    }

    @Override
    public long totalByManagerialId(Map map) {
        return qualityDangerRecordDao.totalByManagerialId(map);
    }

    @Override
    public List<QualityDangerRecord> findQualityDangerRecordByByWorkersId(Map map) {
        return qualityDangerRecordDao.findQualityDangerRecordByByWorkersId(map);
    }

    @Override
    public long totalByWorkersId(Map map) {
        return qualityDangerRecordDao.totalByWorkersId(map);
    }

    @Override
    public Integer countAllByProjectId(Map map) {
        return qualityDangerRecordDao.countAllByProjectId(map);
    }

    @Override
    public List<MonthValue> countQualityDangerRecord(Map map) {
        return qualityDangerRecordDao.countQualityDangerRecord(map);
    }
}
